package com.tron.sync.controller;

import com.tron.sync.entities.JZOrg;
import com.tron.sync.service.JZServiceImpl;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@Api(tags = "字符集测试")
@RestController
public class TestController {

    @Autowired
    JZServiceImpl jzService;

    @ApiOperation(value = "字符集测试")
    @GetMapping("/test")
    public List test() {
        List<JZOrg> org = jzService.getOrg(1);
        return org;
    }
}
